package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wanghai
 * @since 2022-03-10
 */
@Data
@TableName("cm_stat_device")
@ApiModel(value="cmStatDevice对象", description="")
public class CmStatDevice {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "数据日期")
    @TableField("data_date")
    private Date dataDate;

    @ApiModelProperty(value = "企业唯一ID")
    @TableField("sp_id")
    private String spId;

    @ApiModelProperty(value = "厂商代码")
    @TableField("es_code")
    private String esCode;

    @ApiModelProperty(value = "厂商名称")
    @TableField("es_name")
    private String esName;

    @ApiModelProperty(value = "设备类型;厨房设备：16报警器,73 BLE灶具,74 油烟机,75 热水器,76 WIFI灶具,77 净水器,112 温控器 201 烟雾报警器 202紧急按钮 203 水浸报警器等")
    @TableField("device_type")
    private String deviceType;

    @ApiModelProperty(value = "设备类型名称")
    @TableField("type_name")
    private String typeName;

    @ApiModelProperty(value = "用户类型;1、民用户 2、商业户 3、工业户")
    @TableField("my_type")
    private String myType;

    @ApiModelProperty(value = "新增设备数")
    @TableField("new_device")
    private Integer newDevice;

    @ApiModelProperty(value = "累计设备数")
    @TableField("total_device")
    private Integer totalDevice;

    @ApiModelProperty(value = "最近一次更新来源;0智慧厨房，1报警器平台")
    @TableField("update_source")
    private String updateSource;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty(value = "燃气公司名称")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "是否为安防设备;0否，1是")
    @TableField("is_secure")
    private String isSecure;
}
